\doxysection{C\+:/\+Users/\+ASUS/\+Desktop/dm-\/ctrl\+H7-\/balance-\/9025test/modules/algorithm/user\+\_\+lib.c File Reference}
\hypertarget{user__lib_8c}{}\label{user__lib_8c}\index{C:/Users/ASUS/Desktop/dm-\/ctrlH7-\/balance-\/9025test/modules/algorithm/user\_lib.c@{C:/Users/ASUS/Desktop/dm-\/ctrlH7-\/balance-\/9025test/modules/algorithm/user\_lib.c}}
{\ttfamily \#include "{}stdlib.\+h"{}}\newline
{\ttfamily \#include "{}memory.\+h"{}}\newline
{\ttfamily \#include "{}user\+\_\+lib.\+h"{}}\newline
{\ttfamily \#include "{}math.\+h"{}}\newline
{\ttfamily \#include "{}main.\+h"{}}\newline
\doxysubsubsection*{Macros}
\begin{DoxyCompactItemize}
\item 
\Hypertarget{user__lib_8c_a3c5aa68336a2fe036789588c7b3ab418}\label{user__lib_8c_a3c5aa68336a2fe036789588c7b3ab418} 
\#define {\bfseries user\+\_\+malloc}~malloc
\end{DoxyCompactItemize}
\doxysubsubsection*{Functions}
\begin{DoxyCompactItemize}
\item 
void \texorpdfstring{$\ast$}{*} \mbox{\hyperlink{user__lib_8c_a31afb956339abf0230d4314c847dd971}{zmalloc}} (size\+\_\+t size)
\begin{DoxyCompactList}\small\item\em 返回一块干净的内{\ucr}?,不过仍然需要强制转{\ucr}?为你需要的类型 \end{DoxyCompactList}\item 
\Hypertarget{user__lib_8c_a514ba70430558b3be1f14d8efcb63c12}\label{user__lib_8c_a514ba70430558b3be1f14d8efcb63c12} 
float {\bfseries Sqrt} (float x)
\item 
\Hypertarget{user__lib_8c_a87431b689d43aac354cb571f46cbda1c}\label{user__lib_8c_a87431b689d43aac354cb571f46cbda1c} 
float {\bfseries abs\+\_\+limit} (float num, float Limit)
\item 
\Hypertarget{user__lib_8c_a8e014290d3f9707d1c2d06717e815a8b}\label{user__lib_8c_a8e014290d3f9707d1c2d06717e815a8b} 
float {\bfseries sign} (float value)
\item 
\Hypertarget{user__lib_8c_addb1d67e21b35b36007371974306da4a}\label{user__lib_8c_addb1d67e21b35b36007371974306da4a} 
float {\bfseries float\+\_\+deadband} (float Value, float min\+Value, float max\+Value)
\item 
\Hypertarget{user__lib_8c_a5ec0782bfe3b3aee7181959715f712e3}\label{user__lib_8c_a5ec0782bfe3b3aee7181959715f712e3} 
float {\bfseries float\+\_\+constrain} (float Value, float min\+Value, float max\+Value)
\item 
\Hypertarget{user__lib_8c_a02c2e5959398dfb10b030adb6a467745}\label{user__lib_8c_a02c2e5959398dfb10b030adb6a467745} 
int16\+\_\+t {\bfseries int16\+\_\+constrain} (int16\+\_\+t Value, int16\+\_\+t min\+Value, int16\+\_\+t max\+Value)
\item 
\Hypertarget{user__lib_8c_aafaf777de97f12e5e1b2fca1c5d066aa}\label{user__lib_8c_aafaf777de97f12e5e1b2fca1c5d066aa} 
float {\bfseries loop\+\_\+float\+\_\+constrain} (float Input, float min\+Value, float max\+Value)
\item 
\Hypertarget{user__lib_8c_a9449f18ffb9917d6aa4bd62b31469e9b}\label{user__lib_8c_a9449f18ffb9917d6aa4bd62b31469e9b} 
float {\bfseries theta\+\_\+format} (float Ang)
\item 
\Hypertarget{user__lib_8c_a6a2af78041b11fa202434c8ead5c9560}\label{user__lib_8c_a6a2af78041b11fa202434c8ead5c9560} 
int {\bfseries float\+\_\+rounding} (float raw)
\item 
\Hypertarget{user__lib_8c_a5d815a0a50d880cf901ad6818b1cc5c8}\label{user__lib_8c_a5d815a0a50d880cf901ad6818b1cc5c8} 
float \texorpdfstring{$\ast$}{*} {\bfseries Norm3d} (float \texorpdfstring{$\ast$}{*}v)
\item 
\Hypertarget{user__lib_8c_ae48889bbfdac4869379b604ee7c5a141}\label{user__lib_8c_ae48889bbfdac4869379b604ee7c5a141} 
float {\bfseries Norm\+Of3d} (float \texorpdfstring{$\ast$}{*}v)
\item 
\Hypertarget{user__lib_8c_a2af89a25e04a8378567cd866ba1e801b}\label{user__lib_8c_a2af89a25e04a8378567cd866ba1e801b} 
void {\bfseries Cross3d} (float \texorpdfstring{$\ast$}{*}v1, float \texorpdfstring{$\ast$}{*}v2, float \texorpdfstring{$\ast$}{*}res)
\item 
\Hypertarget{user__lib_8c_a623c2aeb3e6f6a271a1a91f5770c0634}\label{user__lib_8c_a623c2aeb3e6f6a271a1a91f5770c0634} 
float {\bfseries Dot3d} (float \texorpdfstring{$\ast$}{*}v1, float \texorpdfstring{$\ast$}{*}v2)
\item 
\Hypertarget{user__lib_8c_a329f38f9e67ae31ff3fb32ccb50f3b19}\label{user__lib_8c_a329f38f9e67ae31ff3fb32ccb50f3b19} 
float {\bfseries Average\+Filter} (float new\+\_\+data, float \texorpdfstring{$\ast$}{*}buf, uint8\+\_\+t len)
\item 
\Hypertarget{user__lib_8c_a98b0a4aacab442f655779833d2a14f39}\label{user__lib_8c_a98b0a4aacab442f655779833d2a14f39} 
void {\bfseries Mat\+Init} (\mbox{\hyperlink{structarm__matrix__instance__f32}{mat}} \texorpdfstring{$\ast$}{*}m, uint8\+\_\+t row, uint8\+\_\+t col)
\end{DoxyCompactItemize}


\doxysubsection{Detailed Description}
\begin{DoxyAuthor}{Author}
Wang Hongxi 

modified by neozng 
\end{DoxyAuthor}
\begin{DoxyVersion}{Version}
0.\+2 beta 
\end{DoxyVersion}
\begin{DoxyDate}{Date}
2021/2/18 
\end{DoxyDate}
\begin{DoxyAttention}{Attention}

\end{DoxyAttention}


\label{doc-func-members}
\Hypertarget{user__lib_8c_doc-func-members}
\doxysubsection{Function Documentation}
\Hypertarget{user__lib_8c_a31afb956339abf0230d4314c847dd971}\index{user\_lib.c@{user\_lib.c}!zmalloc@{zmalloc}}
\index{zmalloc@{zmalloc}!user\_lib.c@{user\_lib.c}}
\doxysubsubsection{\texorpdfstring{zmalloc()}{zmalloc()}}
{\footnotesize\ttfamily \label{user__lib_8c_a31afb956339abf0230d4314c847dd971} 
void \texorpdfstring{$\ast$}{*} zmalloc (\begin{DoxyParamCaption}\item[{size\+\_\+t}]{size}{}\end{DoxyParamCaption})}



返回一块干净的内{\ucr}?,不过仍然需要强制转{\ucr}?为你需要的类型 


\begin{DoxyParams}{Parameters}
{\em size} & 分配大小 \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
void\texorpdfstring{$\ast$}{*} 
\end{DoxyReturn}
